package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.GoodsCategory;
import com.ecoolex.chinadutyfree.retailer.entity.GoodsCategoryExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface GoodsCategoryMapper {
    long countByExample(GoodsCategoryExample example);

    int deleteByExample(GoodsCategoryExample example);

    int deleteByPrimaryKey(Integer categoryId);

    int insert(GoodsCategory record);

    int insertSelective(@Param("record") GoodsCategory record, @Param("selective") GoodsCategory.Column ... selective);

    GoodsCategory selectOneByExample(GoodsCategoryExample example);

    List<GoodsCategory> selectByExample(GoodsCategoryExample example);

    GoodsCategory selectByPrimaryKey(Integer categoryId);

    GoodsCategory selectByPrimaryKeyWithLogicalDelete(@Param("categoryId") Integer categoryId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") GoodsCategory record, @Param("example") GoodsCategoryExample example, @Param("selective") GoodsCategory.Column ... selective);

    int updateByExample(@Param("record") GoodsCategory record, @Param("example") GoodsCategoryExample example);

    int updateByPrimaryKeySelective(@Param("record") GoodsCategory record, @Param("selective") GoodsCategory.Column ... selective);

    int updateByPrimaryKey(GoodsCategory record);

    int batchInsert(@Param("list") List<GoodsCategory> list);

    int batchInsertSelective(@Param("list") List<GoodsCategory> list, @Param("selective") GoodsCategory.Column ... selective);

    int logicalDeleteByExample(@Param("example") GoodsCategoryExample example);

    int logicalDeleteByPrimaryKey(Integer categoryId);
}